package com.agent.generator;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * 生成服务启动类
 * @author Jeff_Wan
 * @description AI生成微服务入口
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling
@ComponentScan({"com.agent"})
@EnableFeignClients(basePackages = "com.agent.**.feign")
public class GeneratorServiceApplication {

    @PostConstruct
    void setDefaultTimezone() {
        TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
    }

    public static void main(String[] args) {
        SpringApplication.run(GeneratorServiceApplication.class, args);
    }
}